# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo09
# Description:
# Author:       98745
# Date:         2019/3/14
#-------------------------------------------------------------------------------

import pandas
s=pandas.DataFrame({
    'name':['li','liang'],
    'o':['china','japan'],
    'b':['1920','1879'],
    'd':['1987','1987'],
    'a':[37,62]
},columns=('o','b','d','a'),index=['li','liang'])
print(s)
f=s.loc['li']
print(type(f))
print('----------')
print(f)
print('-----------')
print(s.index)
print('-------------')
print(f.keys())
print('-------------')
print(f.values)
print(s.index[0])